<div class="row">
    <div class="col-md-12">
        <div class="widget stacked">
            <div class="widget-content">
                <div class="table-responsive">
					<h1><?php echo $this->l('Your Profile'); ?></h1>
				    <div class="row">
						<div class="col-md-12">
				            <div class="well well-sm">
				                <div class="media">
				                    <a class="thumbnail pull-left" href="#">
				                        <img class="media-object" src="http://placehold.it/80">
				                    </a>
				                    <div class="media-body">
				                        <h4 class="media-heading"><?php echo $user->lastname.' '.$user->firstname; ?></h4>
				                		<p>
				                			<span class="label label-info">02 Consultations</span> 
				                			<span class="label label-primary">10 <?php echo $this->l('Messages'); ?></span>
				                		</p>
				                        <p>
				                            <a href="#" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-comment"></span> <?php echo $this->l('Message'); ?></a>
				                            <a href="<?php echo site_url('User/MyAccount/update'); ?>" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-edit"></span> <?php echo $this->l('Edit your profile'); ?></a>
				                            <a href="<?php echo site_url('User/AccountService/passwordRecovery'); ?>" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-"></span> <?php echo $this->l('Retreives your password'); ?></a>
				                        </p>
				                        <p>
				                        	
				                        	<table>
							  					<tbody>
							  						<tr>
								                      <td><?php echo $this->l('Registrate since :'); ?></td>
								                      <td><?php echo /*format_date('d F Y', strtotime($user->date_add))*/'A voir'; ?></td>
								                    </tr>
								                  	<tr>
								                      <td></td><td></td>
								                    </tr>
								                    <tr>
								                      <td><?php echo $this->l('Email :'); ?></td>
								                      <td><?php echo $user->email; ?></td>
								                    </tr>
								                    <tr>
								                      <td></td><td></td>
								                    </tr>
								                    <?php 
								                    if (isset($patient) AND $patient != NULL){
								                    ?>
								                    	<tr>
									                      <td><?php echo $this->l('Birthday :'); ?></td>
									                      <td><?php echo /*format_date('d F Y', strtotime($patient->birthday))*/$patient->birthday; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>					  						
									                  	<tr>
									                      <td><?php echo $this->l('Profession :'); ?></td>
									                      <td><?php echo $patient->profession; ?></td>
									                    </tr>
									                  	<tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('Town :'); ?></td>
									                      <td><?php echo $patient->town; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('Address :'); ?></td>
									                      <td><?php echo $patient->address; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('Phone :'); ?></td>
									                      <td><?php echo $patient->phone; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('P.O.Box :'); ?></td>
									                      <td><?php echo $patient->pobox; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('Social security number :'); ?></td>
									                      <td><?php echo $patient->nb_secur_social; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('CMU :'); ?></td>
									                      <td><?php echo $patient->cmu; ?></td>
									                    </tr>

								                    <?php } elseif (isset($doctor) AND $doctor != NULL){ ?>
							                    	
								                    	<tr>
									                      <td><?php echo $this->l('Profession :'); ?></td>
									                      <td><?php echo $doctor->profession; ?></td>
									                    </tr>
									                  	<tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('Phone :'); ?></td>
									                      <td><?php echo $doctor->phone; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                   	<tr>
									                      <td><?php echo $this->l('Address :'); ?></td>
									                      <td><?php echo $doctor->address; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
									                    <tr>
									                      <td><?php echo $this->l('Description :'); ?></td>
									                      <td><?php echo $doctor->description; ?></td>
									                    </tr>
									                    <tr>
									                      <td></td><td></td>
									                    </tr>
							                    	<?php } else { ?>
							                    		<tr>
									                      <td><?php echo $this->l('Profile :'); ?></td>
									                      <td><a href="<?php echo site_url('User/MyAccount/update'); ?>" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-list"></span> <?php echo $this->l('Add other informations to your profile'); ?></a></td>
									                    </tr>
							                    	<?php } ?>
								                   	
												</tbody>
											</table>
				                    	</p>
				                    </div>
				                </div>
				            </div>
				        </div>
					</div>
  			</div><!-- box-content -->
        </div><!-- /.box -->
    </div><!-- /.col (MAIN) -->
</div>

